package com.basic.business.common.constant;

public enum ResultMsgEnum {
    SUCCESS(0, "成功"),
    FAIL(-1, "失败"),
    LOGIN_EXPIRE(401, "登录过期,请重新登录"),
    LOGIN_INVALID(402, "账号在其他地方登录"),
    LOGIN_PWD_ERROR(403, "登录账号密码错误"),

    AUTH_ERROR(502, "授权失败!"),
    SERVER_BUSY(503, "服务器正忙，请稍后再试!"),
    DATABASE_OPERATION_FAILED(504, "数据库操作失败");
    private int code;
    private String message;

    ResultMsgEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

}

